﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Neoseeker.NAMFox.Tests
{
    public class NAMFoxConfiguration
    {
        public NAMFoxConfiguration()
        {
        }

        public int DisableDoubleClickOnPostsWithMedia
        {
            get { return (int)TestBase.Selenium.Processor.GetNumber("getDisableDoubleClickOnPostsWithMedia", null); }
            set { TestBase.Selenium.Processor.DoCommand("setDisableDoubleClickOnPostsWithMedia", new string[] { value.ToString() }); }
        }

        public int ColorLightness
        {
            get { return (int)TestBase.Selenium.Processor.GetNumber("getColorLightness", null); }
            set { TestBase.Selenium.Processor.DoCommand("setColorLightness", new string[] { value.ToString() }); }
        }

        public LinkBehavior LinkBehavior
        {
            get { return (LinkBehavior)TestBase.Selenium.Processor.GetNumber("getLinkBehavior", null); }
            set { TestBase.Selenium.Processor.DoCommand("setLinkBehavior", new string[] { ((int)value).ToString() }); }
        }

        public bool ReadReceiptChecked
        {
            get { return (bool)TestBase.Selenium.Processor.GetBoolean("getReadReceipt", null); }
            set { TestBase.Selenium.Processor.DoCommand("setReadReceipt", new string[] { value.ToString() }); }
        }

        public bool RememberQuickReplyMessage
        {
            get { return (bool)TestBase.Selenium.Processor.GetBoolean("getRememberQuickReplyMessage", null); }
            set { TestBase.Selenium.Processor.DoCommand("setRememberQuickReplyMessage", new string[] { value.ToString() }); }
        }

        public string RegisteredVersion
        {
            get { return TestBase.Selenium.Processor.GetString("getRegisteredVersion", null); }
            set { TestBase.Selenium.Processor.DoCommand("setRegisteredVersion", new string[] { value.ToString() }); }
        }

        public StripOptions StripOptions
        {
            get { return (StripOptions)TestBase.Selenium.Processor.GetNumber("getStripOptions", null); }
            set { TestBase.Selenium.Processor.DoCommand("setStripOptions", new string[] { ((int)value).ToString() }); }
        }

        public TraceLevel TraceLevel
        {
            get { return (TraceLevel)TestBase.Selenium.Processor.GetNumber("getTraceLevel", null); }
            set { TestBase.Selenium.Processor.DoCommand("setTraceLevel", new string[] { ((int)value).ToString() }); }
        }
    }
}
